add Local Source
abstract fun addLocalSource(sourceId: String, supportedMimeTypes: List<String>, applyAsset: suspend (Asset) -> DesignBlock?? = null, applyAssetToBlock: suspend (Asset, DesignBlock) -> Unit? = null)
Adds a local asset source. Its ID has to be unique.
Parameters
source Id
the id of the new local asset source.
supported Mime Types
the mime types of assets that are allowed to be added to this local source.
apply Asset
an optional callback that can be used to override the default behavior of applying a given asset result to the active scene.
apply Asset To Block
an optional callback that can be used to override the default behavior of applying an asset result to a given block.